import QtQuick 2.12
import QtQuick.Window 2.12

Window {
    visible: true
    width: 640
    height: 480
    Image {
        id: background
        anchors.centerIn: parent
        source: "images/background.png"
        Image {
            id: wheel
            anchors.centerIn: parent
            source: "images/pinwheel.png"
            Behavior on rotation {
                NumberAnimation {
                    duration: 200000
                }
            }
        }

        MouseArea{
            anchors.fill: parent
            onClicked: wheel.rotation += 28800
        }
    }
}
